
function request(data , type , path) {  
    return new Promise(resolve => {
        ajax({
            type,
            path ,
            data ,
            successCB : res => {
                resolve(res)
            }
        })
    })
}


const reg = (data) => request(data , 'post' , 'http://192.168.59.162/2112/day29/%e8%af%be%e5%a0%82%e4%bb%a3%e7%a0%81/%e9%a1%b9%e7%9b%ae%e4%ba%8c%e6%ac%a1%e5%b0%81%e8%a3%85/php/reg.php') ;


